package com.borrower.service;

import com.borrower.dto.BorrowInfoBean;
import com.pojo.BookDamageBean;
import com.pojo.BorrowerBean;
import com.pojo.QueryBookBean;
import com.pojo.UserSendMsgBean;

import java.util.List;

public interface BorrowerService {

    boolean Regis(BorrowerBean bor);

    //判断注册时用户名是否存在
    boolean RegisName(BorrowerBean bor);

    boolean Login(BorrowerBean bor);

    List<BorrowerBean> getBorInfoByIdCard(BorrowerBean bb);

    List<QueryBookBean> queryBookInfoByName(String bookName);

    //显示全部借书信息列表
    List<BorrowInfoBean> BorrowInfoService(String loginName);

    /**
     * 发送留言表
     * @param userSendMsgBean
     * @return
     */
    boolean SendMsg(UserSendMsgBean userSendMsgBean);
    //显示用户个人信息
    List<BorrowerBean> UserInfoService(String loginName);
    boolean CancelService(BorrowerBean bor,String loginName);


    //提交书籍报损信息
    boolean BookDamageInfoService(BookDamageBean bor);
}
